package cn.service.Impl;

import cn.dao.ReplyDao;
import cn.domain.PageBean;
import cn.domain.Reply;
import cn.domain.Topic;
import cn.service.ReplyService;
import cn.utils.HQLHelper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2017/4/7 0007.
 */
@Service
@Transactional
public class ReplyServiceImpl implements ReplyService {

    @Resource
    private ReplyDao replyDao;


    @Override
    public void save(Reply reply) {
        replyDao.save(reply);
    }

    @Override
    public void delete(Long id) {
        replyDao.delete(id);
    }

    @Override
    public PageBean getPageBean(HQLHelper hqlHelper, int C) {
        return replyDao.getPageBean(hqlHelper,C);
    }
}
